package com.metaverse.backend.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.metaverse.backend.security.Authority;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Set;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer"}, ignoreUnknown = true)
public class UserRegister {

    //游戏id
    private String gameId;

    private String openid;//用户唯一标识

    private String uid;

    private String avatar;

    private String password;

    private Set<Authority> authorities = new HashSet<>();

    private boolean admin;

}
